package com.ttbj.api.salesman;

import java.util.List;

import com.ttbj.api.dto.PermissionDto;
import com.ttbj.api.exception.BusinessException;


public interface PermissionService {
	
	/**
     * 根据角色主键ID查询权限
     * @param roleId 角色主键ID
     * @return 权限集合
     * @throws BusinessException
     */
    List<PermissionDto> queryPermissionByRoleId(long roleId) throws BusinessException;
    
    /**
     * 查询全部权限
     * @return 权限集合
     * @throws BusinessException
     */
    List<PermissionDto> queryAll(Long roleId) throws BusinessException;
    
    /**
     * 测试。。。。。
     * @return
     * @throws BusinessException
     */
    String queryString() throws BusinessException;
}
